package com.dkm.ou.me.persistence.entity;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import com.dkm.base.db.persistence.entity.TreeType;

/**
 * 对象功能:资源权限 entity对象
 * 开发公司:唯心六艺软件 - Craft6.cn
 * 开发人员:winston
 * 创建时间:2014-07-21 17:10:20
 */
public class ResPo extends ResTbl implements TreeType<ResPo>{
	public static class TYPE{
		public final static String MENU="menu";
		public final static String ITEM="item";
		public final static String BUTTON="button";
	}
	
	private List<ResPo> subs = new ArrayList<ResPo>();
	private String subSysName;
	
	public List<ResPo> getSubs() {
		return Collections.unmodifiableList(subs);
	}
	
	public void addSub(ResPo resPo){
		subs.add(resPo);
	}

	public String getSubSysName() {
		return subSysName;
	}

	public void setSubSysName(String subSysName) {
		this.subSysName = subSysName;
	}
		
}